﻿using Max.PH5_2004A.Shopping.Domain;
using Max.PH5_2004A.Shopping.DTO.Goods;
using Max.PH5_2004A.Shopping.IRespository;
using Max.PH5_2004A.Shopping.IService;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Max.PH5_2004A.Shopping.Service
{
    public class GoodsService : BaseService<GoodsModel>, IGoodsService
    {
        IGoodsRespository _respository;
        public GoodsService(IGoodsRespository respository) : base(respository)
        {
            _respository = respository;
        }

        public int AddGoodsAndImg(GoodsAndImgInputDto dto)
        {

           return _respository.AddGoodsAndImg(dto);
        }
    }
}
